package Before826.print;

import Before826.print.impl.Inkimpl.*;
import Before826.print.impl.Paperimpl.*;


public class Customer {
    public static void main(String[] args) {
        Ink blackInk = new BlackInk();
        Ink colorInk = new ColorInk();
        Paper a4Paper = new A4Paper();
        Paper b5Paper = new B5Paper();
        Printer printer = new Printer("佳能");
        //安装
        printer.setInk(blackInk);
        printer.setPaper(a4Paper);
        //操作打印
        printer.print("hello!");
    }
}
